package com.lt.test.entity.DTO;

import java.io.Serializable;

/**
 * 订单表
 * Created by zhengchuan on 2017/3/14.
 */
public class SPLOrderDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id; //订单编号
    private String orderTimeStr; //订烟时间
    private String nextOrderTimeStr; //下一次订烟时间
    private String channelCode; //机构代码
    private String channelName; //名称机构
    private String custCode; //专卖证号
    private String empCode; //客户经理code
    private String slsmanName; //客户经理
    private String OrderTypeKey; //订单类型
    private String orderTypeStr; //订单类型描述
    private String orderStatus; //订单状态
    private String orderStatusStr;//订单状态描述
    private String payStatusKey; //支付状态
    private String payStatusStr = "未订烟"; //支付状态描述
    private String orderQtySum;//订单数量
    private String orderAmtSum;//订单金额
    private String createUserId; //创建人id
    private String createUsername; //创建人姓名
    private String createUserPhone; //创建人电话
    private String modifiTimeStr; //最后修改时间
    private String custName; //客户名称


    public String getId() {
        return id;
    }

    public String getOrderTimeStr() {
        return orderTimeStr;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public String getChannelName() {
        return channelName;
    }

    public String getCustCode() {
        return custCode;
    }

    public String getEmpCode() {
        return empCode;
    }

    public String getSlsmanName() {
        return slsmanName;
    }

    public String getOrderTypeKey() {
        return OrderTypeKey;
    }

    public String getOrderTypeStr() {
        return orderTypeStr;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public String getOrderStatusStr() {
        return orderStatusStr;
    }

    public String getPayStatusKey() {
        return payStatusKey;
    }

    public String getPayStatusStr() {
        return payStatusStr;
    }

    public String getOrderQtySum() {
        return orderQtySum;
    }

    public String getOrderAmtSum() {
        return orderAmtSum;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public String getModifiTimeStr() {
        return modifiTimeStr;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setOrderTimeStr(String orderTimeStr) {
        this.orderTimeStr = orderTimeStr;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public void setCustCode(String custCode) {
        this.custCode = custCode;
    }

    public void setEmpCode(String empCode) {
        this.empCode = empCode;
    }

    public void setSlsmanName(String slsmanName) {
        this.slsmanName = slsmanName;
    }

    public void setOrderTypeKey(String orderTypeKey) {
        OrderTypeKey = orderTypeKey;
        switch (orderTypeKey){
            case "10" :
                this.orderTypeStr = "电话";
                break;
            case "20" :
                this.orderTypeStr = "网配";
                break;
            case "31" :
                this.orderTypeStr = "网上";
                break;
            case "34" :
                this.orderTypeStr = "终端";
                break;
            case "33" :
                this.orderTypeStr = "手机";
                break;
            case "32" :
                this.orderTypeStr = "电视";
                break;
            default:
                this.orderTypeStr = "其他";
                break;
        }
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public void setOrderTypeStr(String orderTypeStr) {
        this.orderTypeStr = orderTypeStr;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
        switch (orderStatus){
            case "00" :
                this.orderStatusStr = "未支付";
                break;
            case "01" :
                this.orderStatusStr = "已支付";
                break;
            case "02" :
                this.orderStatusStr = "付款中";
                break;
            case "99" :
                this.orderStatusStr = "支付失败";
                break;
            default:
                this.orderStatusStr = "未知";
                break;
        }
    }

    public void setOrderStatusStr(String orderStatusStr) {
        this.orderStatusStr = orderStatusStr;
    }

    public void setPayStatusKey(String payStatusKey) {
        this.payStatusKey = payStatusKey;
        switch (payStatusKey){
            case "00" :
                this.payStatusStr = "未支付";
                break;
            case "01" :
                this.payStatusStr = "支付成功";
                break;
            case "02" :
                this.payStatusStr = "付款中";
                break;
            case "99" :
                this.payStatusStr = "支付失败";
                break;
            default:
                this.payStatusStr = "未知";
                break;
        }
    }

    public void setPayStatusStr(String payStatusStr) {

        this.payStatusStr = payStatusStr;
    }

    public void setOrderQtySum(String orderQtySum) {
        this.orderQtySum = orderQtySum;
    }

    public void setOrderAmtSum(String orderAmtSum) {
        this.orderAmtSum = orderAmtSum;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }

    public void setModifiTimeStr(String modifiTimeStr) {
        this.modifiTimeStr = modifiTimeStr;
    }

    public String getCreateUserPhone() {
        return createUserPhone;
    }

    public void setCreateUserPhone(String createUserPhone) {
        this.createUserPhone = createUserPhone;
    }

    public String getNextOrderTimeStr() {
        return nextOrderTimeStr;
    }

    public void setNextOrderTimeStr(String nextOrderTimeStr) {
        this.nextOrderTimeStr = nextOrderTimeStr;
    }

    @Override
    public String toString() {
        return "SPLOrderDTO{" +
                "id='" + id + '\'' +
                ", orderTimeStr='" + orderTimeStr + '\'' +
                ", nextOrderTimeStr='" + nextOrderTimeStr + '\'' +
                ", channelCode='" + channelCode + '\'' +
                ", channelName='" + channelName + '\'' +
                ", custCode='" + custCode + '\'' +
                ", empCode='" + empCode + '\'' +
                ", slsmanName='" + slsmanName + '\'' +
                ", OrderTypeKey='" + OrderTypeKey + '\'' +
                ", orderTypeStr='" + orderTypeStr + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                ", orderStatusStr='" + orderStatusStr + '\'' +
                ", payStatusKey='" + payStatusKey + '\'' +
                ", payStatusStr='" + payStatusStr + '\'' +
                ", orderQtySum='" + orderQtySum + '\'' +
                ", orderAmtSum='" + orderAmtSum + '\'' +
                ", createUserId='" + createUserId + '\'' +
                ", createUsername='" + createUsername + '\'' +
                ", createUserPhone='" + createUserPhone + '\'' +
                ", modifiTimeStr='" + modifiTimeStr + '\'' +
                ", custName='" + custName + '\'' +
                '}';
    }
}
